home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / utility / wgrep12.zip / GREPDLL.ZIP / GREPDLL.PAS < prev    next >
Pascal/Delphi Source File  |  1992-05-01  |  1KB  |  41 lines

  1. {--------------------------------------------------------------------------------------------}
  2. {    Windows Grep v1.2
  3.  
  4.    (c) 1992 H. Millington
  5.  
  6.    GREPDLL.PAS: Interface unit for GREP.DLL
  7.  
  8.    
  9. }
  10. {--------------------------------------------------------------------------------------------}
  11.  
  12. unit GrepDLL;
  13.  
  14. interface
  15.  
  16. const
  17.  
  18. {--- Error code returns from CompileGrep ---}
  19.  
  20.    GComp_NoError                   =   0;
  21.    GComp_IllegalOccuranceOp        =   1;
  22.    GComp_UnknownType               =   2;
  23.    GComp_NoType                    =   3;
  24.    GComp_BadClassTermination       =   4;
  25.    GComp_UnterminatedClass         =   5;
  26.    GComp_ClassTooLarge             =   6;
  27.    GComp_EmptyClass                =   7;
  28.  
  29.  
  30. function GrepVersion : Word;
  31. function CompileGrep(GrepString, CompiledGrep : PChar; IgnoreCase : char) : integer;
  32. function Grep(StringToSearch, CompiledGrep : PChar) : Integer;
  33.  
  34. implementation
  35.  
  36. function Grep; external 'GREP' index 3;
  37. function CompileGrep; external 'GREP' index 4;
  38. function GrepVersion; external 'GREP' index 5;
  39.  
  40. end.
  41.